package com.yxw.live_vod_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.io.Serializable;


/** 
 * @author liuxin
 * @create 2023-11-24 14:43:33 
 * @description 视频点赞表 
 */
@Data
@TableName(value ="yx_video_like")
@ApiModel(value = "视频点赞表" , description="yx_video_like")
public class YxVideoLikeEntity  implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "like_id",type = IdType.ASSIGN_ID)
    @ApiModelProperty(value="点赞id")
    private Long likeId;

    @TableField(value="user_id")
    @ApiModelProperty(value="用户id")
    private Long userId;

    @TableField(value="video_id")
    @ApiModelProperty(value="视频id")
    private Long videoId;

    @TableField(value="like_time")
    @ApiModelProperty(value="点赞时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date likeTime;

}
